<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\DB;
class InsertDataToUserType extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        $data = [
            [
                "name"=>"A"
            ],[
                "name"=>"B"
            ],[
                "name"=>"C"
            ],[
                "name"=>"DA"
            ],[
                "name"=>"DB"
            ],[
                "name"=>"DC"
            ],[
                "name"=>"SA"
            ],[
                "name"=>"SB"
            ],[
                "name"=>"SC"
            ],[
                "name"=>"S1A"
            ],[
                "name"=>"S1B"
            ],[
                "name"=>"S1C"
            ]
        ];
        Db::table("user_type")->insert($data);
    }

    /**
     * Reverse the migrations.
     * 
     * @return void
     */
    public function down()
    {
        DB::table('user_type')->truncate();
    }
}
